{assign name="field" value=":sp_details(0, true, true)"}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{$field['wsarticle_title']} - {$site_title}</title>
    <meta name="keywords" content="{$field['wsarticle_keywords']}">
    <meta name="description" content="{$field['wsarticle_description']}">
</head>
<body>
    {include file="cn/include/header"}
    <div>
        <h2>文章图片</h2>
        {assign name="list" value=":sf_imgslist($field['wsarticle_image'])"}
        <table>
            <tr>
                {volist name="list" id="vo"}
                    <td><img src="{$vo['file_path']}" height="200"></td>
                {/volist}
            </tr>
        </table>
    </div>
    <div>
        <h2>该文章分类</h2>
        <blockquote>
            分类名称：{$field['wscate']['wscate_name']}<br>
            分类内容：{$field['wscate']['wscate_details']}<br>
        </blockquote>
    </div>
    <div>
        <h2>自定义参数</h2>
        <blockquote>
            测试内容：{:isset($field['param_10'])?$field['param_10']:''}<br>
            测试内容：{:isset($field['param_14'])?$field['param_14']:''}<br>
            下拉列表：{:isset($field['param_15'])?$field['param_15']:''}<br>
            文章类型：{:isset($field['param_16'])?$field['param_16']:''}<br>
            测试图片：{:isset($field['param_17'])?$field['param_17']:''}<br>
            产品PDF：{:isset($field['param_18'])?$field['param_18']:''}<br>
            产品参数：{:isset($field['param_19'])?$field['param_19']:''}<br>
            多选框：{:isset($field['param_24'])?$field['param_24']:''}<br>
        </blockquote>
    </div>
    <div>
        <h1>标题：{$field['wsarticle_title']}</h1>
        <blockquote>
            发布时间：{:date('Y-m-d H:i:s', $field['wsarticle_create_time'])} <br>
            最后更新：{:date('Y-m-d H:i:s', $field['wsarticle_update_time'])} <br>
            文章浏览：{$field['wsarticle_views']} <br>
            文章来源：{$field['wsarticle_source']} <br>
            文章作者：{$field['wsarticle_author']}
        </blockquote>
        <h3>文章简介</h3>
        {$field['wsarticle_desc']}
        <h3>文章内容</h3>
        {$field['wsarticle_details']|raw}
    </div>
    <div>
        <h3>
            上一条：
            {assign name="prev" value=":sp_prev($field['wsarticle_columnid'], $field['wsarticle_id'])"}
            {if($prev)}
                <a href="{:sf_url('news', $prev)}">{$prev['wsarticle_title']}</a>
            {else}
                已经是最新的文章
            {/if}
        </h3>
        <h3>
            下一条：
            {assign name="next" value=":sp_next($field['wsarticle_columnid'], $field['wsarticle_id'])"}
            {if($next)}
                <a href="{:sf_url('news', $next)}">{$next['wsarticle_title']}</a>
            {else}
                已经是最后的文章
            {/if}
        </h3>
    </div>
    <hr>
    <div>
        <h2>相关文章 <small>（不包括当前文章）</small></h2>
        {assign name="list" value=":sp_article(0, 0, 5, ['where' => 'wsarticle_columnid = 45 and wsarticle_id != '.$field['wsarticle_id']])"}
        {volist name="list" id="vo"}
            <div>
                <a href="{:sf_url('news', $vo)}">{$vo['wsarticle_title']}</a>
            </div>
        {/volist}
    </div>

    
    {include file="cn/include/footer"}
</body>
</html>